package za.ac.lance.OpenClosePrinciple.violates;

/**
 * File Name: ShapeViolates.java
 * Version:
 * Description: Open close principle (OCP) is violated Because the moment another
 * shape is added most of the code must chance.
 * Package: za.ac.lance.opencloseprinciple.violates
 * Author: Lance
 * Date: Feb 24, 2012
 */
public class ShapeViolates
{

    private int shapeType;
    private int lineThickness;

    public ShapeViolates(int shapeType, int lineThickness)
    {
        this.shapeType = shapeType;
        this.lineThickness = lineThickness;
    }

    public int getShapeType()
    {
        return shapeType;
    }

    public void setShapeType(int shapeType)
    {
        this.shapeType = shapeType;
    }

    public int getLineThickness()
    {
        return lineThickness;
    }

    public void setLineThickness(int lineThickness)
    {
        this.lineThickness = lineThickness;
    }

    @Override
    public String toString()
    {
        return "Shape{" + "shapeType=" + shapeType + ", lineThickness=" + lineThickness + '}';
    }
}
